<?php

include_once('Encode.php');

class Resp {

    
    public static function retSuc($retCode, $retMsg) {

        $array = (object)array(
            'retCode' => $retCode,
            'result' => $retMsg
        );
        return json_encode($array);
    }

    public static function retFail($errCode, $errCont) {

        $dataArray = array(
            'errCode' => $errCode,
            'errCont' => $errCont
        );
        $tmpDataArray=(object)array(
            'retCode'=>0,
            'result'=>$dataArray
        );
        return json_encode($tmpDataArray);
    }
    
}
	